/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.invoice.exceptions;

import com.invoice.global.ErrorType;

/**
 *
 * @author Lenin
 */
public class InvoiceException extends Exception{
    protected ErrorType errorType;
    public InvoiceException(String message, Throwable e){
        super(message, e);
    }
    public InvoiceException(ErrorType errorType, String message,Throwable e){
        super(message, e);
        this.errorType=errorType;
    }

    public ErrorType getErrorType() {
        return errorType;
    }

    public void setErrorType(ErrorType errorType) {
        this.errorType = errorType;
    }
    
}
